package com.elastic.chain;

import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;

/**
 * @ClassName FinalLeader
 * @Author xiezhuocai
 * @Description
 * @Date 2021/12/22 19:56
 */
public class FinalLeader extends Leader {

    @Override
    public boolean handleRequest(BoolQueryBuilder boolQuery, String key, Object value) {
        boolQuery.must(QueryBuilders.matchQuery(key,value));;
        return true;
    }
}
